package com.forekenow.Demo8.Exercise.E2;

public class ClassA implements InterfaceA {

    @Override
    public int method(int n) {
        int sum=0;
        for (int i = 0; i <= n; i++) {
            sum+=i;
        }
        System.out.println(sum);
        return sum;
    }
}
